{# vim: set et ts=8 sts=4 sw=4 ai: #}
{% extends "form.html" %}
{% block formcontent %}
<form action="{{url_for("delete", path=pagepath )}}" method="POST" class="form-inline">
  <div class="form-group">
    <label for="message" class="w-150">Commit message</label>
    <input type="text" class="form-control" name="message" id="message" placeholder="Deleted {{pagename}}." value="{{message}}">
  </div>
  <div class="custom-checkbox">
      <input type="checkbox" id="delete-attachments" name="recursive" value="recursive" checked>
      <label for="delete-attachments">Recursive remove all attached files and folders</label>
  </div>
  <div class="form-group mt-10">
      <input class="btn btn-danger" type="submit" value="Delete">
      <a href="{{ url_for("view", path=pagepath) }}" class="btn" role="button">Cancel</a>
  </div>
  <div class="form-text">
      <em>Note: Reverting a delete will restore the deleted file(s).</em>
  </div>
</form>
{% endblock %}
